﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Entity.Migrations
{
    /// <inheritdoc />
    public partial class Init : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterDatabase()
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.CreateTable(
                name: "AA001",
                columns: table => new
                {
                    A01 = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
                    A002 = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    A003 = table.Column<int>(type: "int", nullable: false),
                    A004 = table.Column<DateTime>(type: "datetime(6)", nullable: false),
                    A005 = table.Column<string>(type: "longtext", nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    A006 = table.Column<string>(type: "longtext", nullable: true)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    A007 = table.Column<bool>(type: "tinyint(1)", nullable: false),
                    A008 = table.Column<DateTime>(type: "datetime(6)", nullable: false),
                    A02 = table.Column<bool>(type: "tinyint(1)", nullable: false),
                    A03 = table.Column<bool>(type: "tinyint(1)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_AA001", x => x.A01);
                })
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "AA001");
        }
    }
}
